package com.homegoods.home.model;

import java.io.Serializable;
import java.util.List;

/**
 * add shibo.zheng
 * 19/07/10
 * 首页商品分类数据model
 */
public class HomeGroupsModel implements Serializable {

    /**
     * id : 91
     * groupName : 箱包服饰
     * banners : []
     * children : [{"id":92,"groupName":"新品首推"},{"id":93,"groupName":"型男专场"},{"id":95,"groupName":"精品男包"},{"id":96,"groupName":"时尚女包"},{"id":97,"groupName":"旅行必备"}]
     */

    private int id;
    private String groupName;
    private List<BannerBean> banners;
    private List<ChildrenBean> children;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public List<BannerBean> getBanners() {
        return banners;
    }

    public void setBanners(List<BannerBean> banners) {
        this.banners = banners;
    }

    public List<ChildrenBean> getChildren() {
        return children;
    }

    public void setChildren(List<ChildrenBean> children) {
        this.children = children;
    }

    public static class ChildrenBean implements Serializable {
        /**
         * id : 92
         * groupName : 新品首推
         */

        private int id;
        private String groupName;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getGroupName() {
            return groupName;
        }

        public void setGroupName(String groupName) {
            this.groupName = groupName;
        }
    }

    public static class BannerBean implements Serializable {

        /**
         * productId : 2
         * imageUrl : mall/images/20190701/1561975304681HDjP2ikHiQyBxeWjAs6k4Hr8DKpTKTJG.png
         */

        private int productId;
        private String imageUrl;

        public int getProductId() {
            return productId;
        }

        public void setProductId(int productId) {
            this.productId = productId;
        }

        public String getImageUrl() {
            return imageUrl;
        }

        public void setImageUrl(String imageUrl) {
            this.imageUrl = imageUrl;
        }
    }
}
